package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.HashMap;
import java.util.Map;

/**
 * @Description
 * @Author cwq
 * @Data 2022/5/10 11:44
 */
@FieldTypeAnnotation(tableName = "t_l_ck_drug_store_hard_case", desc = "疑难杂症配药日志", autoSave = true, uploadCk = true)
public class LogDrugStoreHardCase extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "题目id")
    private int caseId;

    @FieldTypeAnnotation(desc = "类型 1配药 2 放弃")
    private int type;

    @FieldTypeAnnotation(desc = "制药配方")
    private Map<Integer, Integer> crudeDrugMap = new HashMap<>();

    @FieldTypeAnnotation(desc = "药引")
    private int drugIntroductionId;

    @FieldTypeAnnotation(desc = "医嘱")
    private int orderId;

    @FieldTypeAnnotation(desc = "最终评分")
    private int finalScore;

    @FieldTypeAnnotation(desc = "评价id")
    private int status;

    @FieldTypeAnnotation(desc = "最初健康值")
    private int initHealth;

    @FieldTypeAnnotation(desc = "最终健康值")
    private int finalHealth;

    @FieldTypeAnnotation(desc = "奖励")
    private String reward;

    public LogDrugStoreHardCase(long userId, int caseId, int type, Map<Integer, Integer> crudeDrugMap, int drugIntroductionId, int orderId, int finalScore, int status, int initHealth, int finalHealth, String reward) {
        this.userId = userId;
        this.caseId = caseId;
        this.type = type;
        this.crudeDrugMap = crudeDrugMap;
        this.drugIntroductionId = drugIntroductionId;
        this.orderId = orderId;
        this.finalScore = finalScore;
        this.status = status;
        this.initHealth = initHealth;
        this.finalHealth = finalHealth;
        this.reward = reward;
    }

    public long getUserId() {
        return userId;
    }

}
